package com.example.xm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class PinglunEntity {
    private Integer id;
    private Integer startId;
    private Integer endId;
    private String content;
    private Integer vid;
    private Integer pid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    private String startName;
    private String startAvatar;
    private String endAvatar;
    private String endName;
    List<PinglunEntity> children=new ArrayList<>();
}
